<?php

namespace app\controller\main;

use linkphp\Application;

class Forum
{

    public function __construct()
    {
        Application::singletonEager(
            'forum',
            'app\\logic\\main\\Forum'
        );
        Application::singletonEager(
            'forumData',
            'app\\model\\main\\Forum'
        );
        Application::singletonEager(
            'auth',
            'app\\controller\\main\\Auth'
        );
    }

    public function push()
    {
        return Application::get('forum')->push();
    }

    public function getForumList()
    {
        return Application::get('forum')->getForumList();
    }

    public function getItem()
    {
        return Application::get('forum')->getItem();
    }

    public function getType(){}

    public function reply()
    {
        return Application::get('forum')->reply();
    }

}